﻿using System.Collections.Generic;
using DataBaseLayer.Dto;

namespace DataBaseLayer.Abstractions.Interfaces.Services
{
	public interface IGalleriesService
	{
		int GetCountGalleries();

		IEnumerable<GalleryData> GetLastGalleries(int countFirstSkipGalleries);

		IEnumerable<GalleryData> GetGalleries();

		void SaveGallery(GalleryData entity);

		void DeleteGallery(int id);

		GalleryData GetGallery(int id);

		IEnumerable<ImageData> GetGalleryImagesByGalleryId(int id);

		void UpdateGalleryDefaultImage(int newDefaultImageId, bool isDefaultImage);

		string GetBigImageNameById(int id);

		string GetSmallImageNameById(int id);

		void DeleteImage(int id);

		int GetLastImageNumber();

		void CreateImage(ImageData image);
	}
}
